/**
 * Created by wust on 2019-11-06 15:14:58
 * Copyright © 2019 wust. All rights reserved.
 */
package com.wust.smartcity.demo.server.core.api.feign.client.impl;

import com.wust.smartcity.common.dto.WebResponseDto;
import com.wust.smartcity.common.entity.sys.project.SysProject;
import com.wust.smartcity.demo.server.core.api.feign.client.SysProjectService;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.stereotype.Service;

/**
 * @author: wust
 * @date: Created in 2019-11-06 15:14:58
 * @description:
 *
 */
@Service
public class SysProjectServiceFallbackImpl implements SysProjectService {
    static Logger logger = LogManager.getLogger(SysProjectServiceFallbackImpl.class);



    @Override
    public WebResponseDto select(String ctx, SysProject search) {
        logger.error("调用admin服务异常，熔断器发生作用{},{}",ctx,search);
        WebResponseDto responseDto = new WebResponseDto();
        responseDto.setFlag(WebResponseDto.INFO_ERROR);
        responseDto.setMessage("调用admin服务异常");
        return responseDto;
    }
}
